home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19971216-19980424 / 000090_news@newsmaster….columbia.edu _Wed Jan 14 09:42:52 1998.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id JAA26995
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Wed, 14 Jan 1998 09:42:51 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id JAA16996
  7.     for kermit.misc@watsun; Wed, 14 Jan 1998 09:42:51 -0500 (EST)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: 'Remote if exist' type command
  12. Date: 14 Jan 1998 14:42:49 GMT
  13. Organization: Columbia University
  14. Lines: 22
  15. Message-ID: <69iit9$hrr$1@apakabar.cc.columbia.edu>
  16. References: <34BC530F.C4C@netlink.com.au>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:8263
  19.  
  20. In article <34BC530F.C4C@netlink.com.au>,
  21. Ross Irvine  <rirvine@netlink.com.au> wrote:
  22. : I have a site with kermit in server mode, and another site which dials
  23. : up and exchanges some data (not in server mode).
  24. : Currently from the client if I'm trying to get a file back (which
  25. : sometimes is there, sometimes it isn't) I'm just doing a straight
  26. : get blahh.txt from the client's script.
  27. : I then check the success or failure of the get to see if the file came
  28. : back. Is there a way to test the existance of a file on a remote server?
  29. Suppose the file's name is oofa.txt.  Suppose the server is C-Kermit 6.0,
  30. and the client is also of relatively recent vintage.  Then the best method
  31. would be:
  32.  
  33.   remote query kermit files(oofa.txt)
  34.  
  35. The server returns "1" if it exists, "0" if it doesn't, into the
  36. client's \v(query) variable.
  37.  
  38. - Frank